module.exports = (sequelize, DataTypes) => {
  const Article = sequelize.define(
    "article",
    {
      // 在这里定义模型属性
      listId: {
        type: DataTypes.INTEGER, //模型字段类型
        primaryKey: true, //主键
        autoIncrement: true, //自增长
      },
      attr0: {
        type: DataTypes.STRING,
        allowNull: false,
      },
      attr1: {
        type: DataTypes.STRING,
        allowNull: false,
      },
      attr2: {
        type: DataTypes.STRING,
        allowNull: false,
      },
      attr3: {
        type: DataTypes.STRING,
        allowNull: false,
      },
      attr4: {
        type: DataTypes.STRING,
        allowNull: false,
      },
      attr5: {
        type: DataTypes.STRING,
        allowNull: false,
      },
      attr6: {
        type: DataTypes.STRING,
        allowNull: false,
      },
      attr7: {
        type: DataTypes.STRING,
        allowNull: false,
      },
      attr8: {
        type: DataTypes.STRING,
        allowNull: false,
      },
      attr9: {
        type: DataTypes.STRING,
        allowNull: false,
      },
      attr10: {
        type: DataTypes.STRING,
        allowNull: false,
      }
    },
    {
      tableName: "article",
      timestamps: true,
    }
  );

  return Article;
};
